<?
class User {
	private $userid;
	private $username;
	private $name;
	private $img;
	private $location;
	private $url;
	
	public function __construct($userid, $username, $name = NULL,
		$img = NULL, $location = NULL, $url = NULL) {
		$this->userid = $userid;
		$this->username = $username;
		$this->name = $name;
		$this->img = $img;
		$this->location = $location;
		$this->url = $url;
	}
	
	public function getUserId() {
		return $this->userid;
	}
	
	public function getUsername() {
		return $this->username;
	}
	
	public function getName() {
		return $this->name;
	}
	
	public function getImage() {
		return $this->img;
	}
	
	public function getLocation() {
		return $this->location;
	}
	
	public function getURL() {
		return $this->url;
	}
	
	public function toString() {
		return 
			"Class::User {\n".
			"\t[userid] => ".$this->userid."\n".
			"\t[username] => ".$this->username."\n".
			"\t[img] => ".$this->img."\n".
			"\t[location] => ".$this->location."\n".
			"\t[url] => ".$this->url."\n".
			"}\n";
	}
	
}
?>